package com.cloud.rapid.screen.constant;

/**
 * 返回码枚举
 *
 * @author lvlinguang
 * @date 2020-11-29 20:30
 */
public enum ResponseCodeEnum {

    SUCCESS(0, "操作成功"),
    ERROR_FAILED(1, "操作失败"),
    ERROR_FALLBACK(429, "压力太大了，无法为您服务，请稍候再来吧");

    private Integer code;
    private String name;

    ResponseCodeEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
